/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package doan;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Windows 7
 */
public class F2 extends javax.swing.JFrame {

    /**
     * Creates new form F2
     */
    public F2() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pn2 = new javax.swing.JPanel();
        bt2_Add = new javax.swing.JButton();
        bt2_Edit = new javax.swing.JButton();
        bt2_Create = new javax.swing.JButton();
        bt2_Delete = new javax.swing.JButton();
        bt2_Result = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(800, 600));
        setPreferredSize(new java.awt.Dimension(800, 600));
        getContentPane().setLayout(null);

        pn2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        bt2_Add.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt2_Add.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/1392944405_add.png"))); // NOI18N
        bt2_Add.setText("Add");
        bt2_Add.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt2_AddActionPerformed(evt);
            }
        });
        pn2.add(bt2_Add, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 340, 230, -1));

        bt2_Edit.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt2_Edit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/1392944610_edit-notes.png"))); // NOI18N
        bt2_Edit.setText("Edit");
        bt2_Edit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt2_EditActionPerformed(evt);
            }
        });
        pn2.add(bt2_Edit, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 420, 230, 50));

        bt2_Create.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt2_Create.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/1392558117_add-address.png"))); // NOI18N
        bt2_Create.setText("Create");
        bt2_Create.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt2_CreateActionPerformed(evt);
            }
        });
        pn2.add(bt2_Create, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 340, 230, 50));

        bt2_Delete.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt2_Delete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/1392943852_delete.png"))); // NOI18N
        bt2_Delete.setText("Delete");
        bt2_Delete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt2_DeleteActionPerformed(evt);
            }
        });
        pn2.add(bt2_Delete, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 420, 220, 50));

        bt2_Result.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt2_Result.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/1392969837_Test-paper-128.png"))); // NOI18N
        bt2_Result.setText("Result");
        bt2_Result.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt2_ResultActionPerformed(evt);
            }
        });
        pn2.add(bt2_Result, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 460, 230, 50));

        jButton6.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        jButton6.setText("45' Test");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });
        pn2.add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 390, 230, 50));

        jButton7.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        jButton7.setText("15' Test");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });
        pn2.add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 330, 230, 50));

        jButton1.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        jButton1.setText("Log out");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        pn2.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 530, 100, -1));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/slide2.jpg"))); // NOI18N
        jLabel1.setMaximumSize(new java.awt.Dimension(800, 620));
        jLabel1.setMinimumSize(new java.awt.Dimension(800, 620));
        pn2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 770, 600));

        getContentPane().add(pn2);
        pn2.setBounds(0, 0, 800, 600);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void bt2_AddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt2_AddActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        Form2_3 t = null;
        try {
            t = new Form2_3();
        } catch (Exception ex) {
            Logger.getLogger(F2.class.getName()).log(Level.SEVERE, null, ex);
        }
        t.setVisible(true);
    }//GEN-LAST:event_bt2_AddActionPerformed

    private void bt2_EditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt2_EditActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        Form2_4 t=new Form2_4();
        t.setVisible(true);
    }//GEN-LAST:event_bt2_EditActionPerformed

    private void bt2_CreateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt2_CreateActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        Form2_1 t=new Form2_1();
        t.setVisible(true);
    }//GEN-LAST:event_bt2_CreateActionPerformed

    private void bt2_DeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt2_DeleteActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        Form2_2 t=new Form2_2();
        t.setVisible(true);
    }//GEN-LAST:event_bt2_DeleteActionPerformed

    private void bt2_ResultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt2_ResultActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_bt2_ResultActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        try {
            // TODO add your handling code here:
            this.setVisible(false);
            Form1 ta =new Form1();
            ta.setVisible(true);
        } catch (Exception ex) {
            Logger.getLogger(F2.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(F2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(F2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(F2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(F2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new F2().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt2_Add;
    private javax.swing.JButton bt2_Create;
    private javax.swing.JButton bt2_Delete;
    private javax.swing.JButton bt2_Edit;
    private javax.swing.JButton bt2_Result;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel pn2;
    // End of variables declaration//GEN-END:variables
}
